package com.s7175.kor.model;

import java.util.ArrayList;

public class ArchitectureView extends ModelMaster {

	public ArrayList<Component> oChildList = new ArrayList<Component>();

	private String name;

	public ArchitectureView(String sName) {
		this.setName(sName);
	};

	public boolean addComponent(Component oCat) {
		return this.oChildList.add(oCat);
	}

	public boolean removeComponent(Component oCat) {
		return this.oChildList.remove(oCat);
	}

	public ArrayList<Component> getComponents() {
		return this.oChildList;
	}

	public boolean removeCategory(int i) {
		return this.oChildList.remove(i) != null;
	}

	public String getName() {
		return name;
	}

	public void setName(String sName) {
		this.name = sName;
	}

}
